<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="css/aboutme.css" />

	</head>

	<body>
		
<header class="mui-bar mui-bar-nav">
    <h1 class="mui-title">个人中心</h1>
</header>

		<div class="me-header">
			<img src="img/logo.png" class="index_img">
		</div>

		<ul class="mui-table-view">
			<li class="mui-table-view-cell" id="updatePassword">
				<a class="mui-navigate-right">
					修改密码
				</a>
			</li>
			<li class="mui-table-view-cell" id="outlogin">
				<a class="mui-navigate-right">
					退出登陆
				</a>
			</li>
		</ul>

	</body>

</html>
<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true // 启动右滑关闭功能
			});
			// 注销
      		document.getElementById("outlogin").addEventListener("tap",function(e){
      			e.detail.gesture.preventDefault();
                var btnArray = ['否', '是'];			//操作
				 mui.confirm('是否退出登陆?','提示', btnArray, function(e) {
				 	 if (e.index == 1) {
                        //跳转至登陆界面
                        localStorage.clear();
                        plus.runtime.restart();
                   } else {
                        ;//取消操作
                    }
                 	})
      		});
      		
      	//修改密码
      	mui("#updatePassword").on('tap', 'a', function() {
      		mui.openWindow({
      			url:'update_password.html',
      			id:'update_password.html',
      			style: {},
      			show: {
							autoShow: true,
							aniShow: 'fade-in',
							duration: 100
						},
						waiting: {
							autoShow: true, //自动显示等待框，默认为true
							title: '正在加载...' //等待对话框上显示的提示内容
						}
      		})
      	})
</script>
<script type="text/javascript">
	mui.plusReady(function(){
		/*监听手机的返回键*/
				if('Android' == plus.os.name) {
					var first = null;
					mui.back = function() {
						if(!first) {
							first = new Date().getTime();
							mui.toast('再按一次退出应用');
							setTimeout(function() {
								first = null;
							}, 1000);
						} else {
							if(new Date().getTime() - first < 1000) {
								plus.runtime.quit();
							}
						}
					}
				}
	})
</script>

<!--<script type="text/javascript">
	mui.plusReady(function(){
		/*获取头部标题*/
		// 1.获取页面传的参数
		var title = plus.webview.currentWebview().title_;
		// 2.将传的参数放到header中
		document.querySelector('.mui-title').innerText=title;
	})
</script>-->